<template>
    <div>
        my
        <button @click="$router.back()">后退</button>
        <button @click="$router.go(-2)">自定义后退</button>
    </div>
</template>
<script>
export default {
    mounted(){
        console.log('my',this.$route)
    }
}
</script>